package com.amor.workpcs.controller;

import com.amor.workpcs.entity.WorkHours;
import com.amor.workpcs.service.WorkHoursService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (WorkHours)表控制层
 *
 * @author makejava
 * @since 2021-09-14 11:01:50
 */
@RestController
@RequestMapping("workHours")
public class WorkHoursController {
    /**
     * 服务对象
     */
    @Resource
    private WorkHoursService workHoursService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public WorkHours selectOne(Integer id) {
        return this.workHoursService.queryById(id);
    }

}